 |
 Trouble with NotesRichTextNavigator ~Kirk Dwowepuloni 12/24/2003 03:28 AM Domino Designer 6.0.2 CF2 Windows 2000
When using FindString against rich text, it seems to take an initial pass at the text just fine, but will not execute and find a different FindString "behind" the last occurence. Is there any way to reset the "cursor" or navigator to the beginning of the rich text for each pass (or search) for text? I've tried, SetCharOffset, SetPosition, Reset and many other less intuitive ideas. I am no expert!!!Following is my attempt at searching for text in a field (body), and then via UI, replacing with an arrayed variable...
If rtnav.FindFirstString("<Customer>") Then
Do
Call uidoc.FindString("<Customer>")
Call uidoc.Cut
Call uidoc.InsertText(Customer)
Loop While rtnav.FindNextString("<Customer>")
Else
End If
If rtnav.FindFirstString("<OppID>") Then
Do
Call uidoc.FindString("<OppID>")
Call uidoc.Cut
Call uidoc.InsertText(OppID)
Loop While rtnav.FindNextString("<OppID>")
Else
End If
Go back |